home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gstrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.3 KB  |  77 lines

  1. /* Copyright (C) 1997, 1998, 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gstrap.h,v 1.3 2000/09/19 19:00:33 lpd Exp $ */
  20. /* Definitions for trapping parameters and zones */
  21.  
  22. #ifndef gstrap_INCLUDED
  23. #  define gstrap_INCLUDED
  24.  
  25. #include "gsparam.h"
  26.  
  27. /* ---------------- Types and structures ---------------- */
  28.  
  29. /* Opaque type for a path */
  30. #ifndef gx_path_DEFINED
  31. #  define gx_path_DEFINED
  32. typedef struct gx_path_s gx_path;
  33.  
  34. #endif
  35.  
  36. /* Define the placement of image traps. */
  37. typedef enum {
  38.     tp_Center,
  39.     tp_Choke,
  40.     tp_Spread,
  41.     tp_Normal
  42. } gs_trap_placement_t;
  43.  
  44. #define gs_trap_placement_names\
  45.   "Center", "Choke", "Spread", "Normal"
  46.  
  47. /* Define a trapping parameter set. */
  48. typedef struct gs_trap_params_s {
  49.     float BlackColorLimit;    /* 0-1 */
  50.     float BlackDensityLimit;    /* > 0 */
  51.     float BlackWidth;        /* > 0 */
  52.     /* ColorantZoneDetails; */
  53.     bool Enabled;
  54.     /* HalftoneName; */
  55.     bool ImageInternalTrapping;
  56.     bool ImagemaskTrapping;
  57.     int ImageResolution;
  58.     bool ImageToObjectTrapping;
  59.     gs_trap_placement_t ImageTrapPlacement;
  60.     float SlidingTrapLimit;    /* 0-1 */
  61.     float StepLimit;        /* 0-1 */
  62.     float TrapColorScaling;    /* 0-1 */
  63.     float TrapWidth;        /* > 0 */
  64. } gs_trap_params_t;
  65.  
  66. /* Define a trapping zone.  ****** SUBJECT TO CHANGE ****** */
  67. typedef struct gs_trap_zone_s {
  68.     gs_trap_params_t params;
  69.     gx_path *zone;
  70. } gs_trap_zone_t;
  71.  
  72. /* ---------------- Procedures ---------------- */
  73.  
  74. int gs_settrapparams(P2(gs_trap_params_t * params, gs_param_list * list));
  75.  
  76. #endif /* gstrap_INCLUDED */
  77.